<template>
  <div>
    <button type="button" class="btn btn-light btn-sm" @click="$router.go(-1)">
      后退
    </button>
    <h4 class="text-center">用户详情</h4>
    <!-- <h6 style="text-align: center">{{ $route.params.id }}</h6> -->
    <h6 style="text-align: center">{{ id }}</h6>
  </div>
</template>

<script>
export default {
  name: "MyUserDetail",
  props: ["id"],
  methods: {
    bk() {
      this.$router.go(-1);
    },
  },
  created() {
    console.log(this);
  },
};
</script>

<style lang="less" scoped></style>
